#pragma once

#include "middle.h"
#include "../../include/IBtsDBSvr.h"

#include "MiddleBgsAux.h"
using namespace BGS;

#include "Packet_BTS64.h"
using namespace BTS64;

class CAuxDevice;

namespace BTS64
{
#ifdef __USE_BTS64__
class CMiddleBTS64: public CMiddleBgsAux
{
public:
    CMiddleBTS64(DWORD dwSocket, string& strIP, CBuffer* pBuf, BYTE btDeviceID, BYTE btSubDevID, WORD wVersion);
    virtual ~CMiddleBTS64();
public:
    virtual void ProcessPacket(BYTE btCmd);
    bool SendCmd_BTS64_SetStep(DWORD dwSocket, const BTSCS::CCsPacket_BTS64_SetStep & CsPacket);
    void SendCmd_BTS64_SetStepResp();
    void SendCmd_BTS64_StartResp();
public:
    bool BTS64_CreateChannelTest(const BYTE btDeviceID, const BYTE btSubDevID, const vector<BYTE> & vcChlID, const vector<DWORD> & vcTestID);
    void BTS64_SaveStepToChannel(BTSDB::BTS64_Step & StepData);

private:
};
#endif//__USE_BTS64__
};
